package net.zjitc.service.CategorySecond.impl;

import net.zjitc.dao.CategorySecond.CategorySecondDao;
import net.zjitc.service.CategorySecond.CategorySecondService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/3/15.
 */
@Service
@Transactional
public class CategorySecondServiceImpl implements CategorySecondService {
    @Resource
    CategorySecondDao categorySecondDao;

    @Override
    public List findByCid(Integer cid) {
        return categorySecondDao.findByCid(cid);
    }

    @Override
    public List findAll() {
        return categorySecondDao.findAll();
    }
}
